package com.newland.starpos.partner.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author liuNW
 * @since 2018-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_grade_flow")
public class GradeFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    public GradeFlow(Long userId, String gradeType) {
        this.userId = userId;
        this.gradeType = gradeType;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private String oldValue;

    private String newValue;

    /**
     * 触发对象
     */
    private String triggerObject;

    /**
     * 原等级
     */
    private Integer oldGrade;

    /**
     * 现等级
     */
    private Integer newGrade;

    /**
     * 类型
     */
    private String gradeType;

    private LocalDateTime creTime;
}
